package Reflect.demo01;


import java.lang.reflect.Field;

public class Test {
    public static void main(String[] args) {
        Student student = new Student();
        Class<?> aClass = student.getClass();
        Field[] declaredFields = aClass.getDeclaredFields();
        for(Field field:declaredFields){
            System.out.println(field.getName());
        }
    }
}
